/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package net.tygzs.minerpg.CommandExecutor.MinePacket;

import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

/**
 *
 * @author thtTNT
 */
public class Command_Help
{

    public static void sendHelp(CommandSender sender, String args[])
    {
        if (args == null)
        {
            sendIndexOfHelp(sender, 1);
        }
    }

    public static void sendIndexOfHelp(CommandSender sender, int index)
    {
        sender.sendMessage(ChatColor.GREEN + "----------------------");
        if (index == 1)
        {
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket help <页码> 获取关于礼包的帮助");
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket NewPlayer <礼包名称> 取消/设置一个新手礼包");
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket edit <礼包名称> 编辑一个礼包");
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket create <礼包名称> 创建一个礼包");
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket remove <礼包名称> 删除一个礼包");
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket list 列举所有礼包");
            sender.sendMessage(ChatColor.YELLOW + "/MinePacket send <礼包名称> <玩家名称> 赠送指定礼包给玩家");
        }
        sender.sendMessage(ChatColor.RED + "------第" + index + "页/共1页------");
    }
}
